import axios from "@/api/http";

// 获取推荐标签
const recommend = () => {
    return axios.get('/subscriptions/recommended_collections');
};

// 获取文章列表
const trending = () => {
    return axios.get('/trending/now', {
        params: {
            count: 15
        }
    });
};

// 获取文章详细信息
const baseInfo = (id) => {
    return axios.get(`/p/${id}`);
};

export default {
    recommend,
    trending,
    baseInfo
};